
<h1>Create an Account!</h1>

    <script type="text/javascript"  >

        function clearText(thefield){
        if (thefield.defaultValue==thefield.value)
        thefield.value = ""
        }
    </script>

<fieldset>
<legend>Personal Information</legend>
<?php
//This view is pretty much a big form, were a person can create a profile.

$form_firstname = array(
        'name'      =>  'first_name',
        'value'     =>  'First Name',
        'onFocus'   =>  'clearText(this)'
        );

$form_lastname = array(
        'name'      =>  'last_name',
        'value'     =>  'Last Name',
        'onFocus'   =>  'clearText(this)'
        );

$form_email = array(
        'name'      =>  'email',
        'value'     =>  'Email Address',
        'onFocus'   =>  'clearText(this)'
        );

$form_username = array(
        'name'      =>  'username',
        'value'     =>  'Username',
        'onFocus'   =>  'clearText(this)'
        );

    $form_password = array(
        'name'      =>  'password',
        'value'     =>  'Password',
        'onFocus'   =>  'clearText(this)'
        );

    $form_password2 = array(
        'name'      =>  'password2',
        'value'     =>  'Password',
        'onFocus'   =>  'clearText(this)'
        );


echo form_open('login/create_user');

echo form_input($form_firstname);
echo form_input($form_lastname);
echo form_input($form_email);
?>
</fieldset>

<fieldset>
<legend>Login Info</legend>
<?php
echo form_input($form_username);
echo form_input($form_password);
echo form_input($form_password2);

echo form_submit('submit', 'Create Acccount');
?>

<?php echo validation_errors('<p class="error">'); ?>
</fieldset>
